<template>
  <el-form label-width="100px">
    <CommonProps :placeholder="false" :field="false" />
    <el-form-item label="文字内容">
      <el-input
        type="textarea"
        v-model="fs.getProps().text"
        :autosize="{ minRows: 2, maxRows: 6 }"
        placeholder="回车分隔多组内容"
      />
    </el-form-item>
    <el-form-item label="链接地址">
      <el-input
        type="textarea"
        v-model="fs.getProps().link"
        :autosize="{ minRows: 2, maxRows: 6 }"
        placeholder="回车分隔多组链接"
      />
    </el-form-item>
    <el-form-item label="显示标题">
      <el-switch v-model="fs.getProps().showLabel" />
    </el-form-item>
  </el-form>
</template>

<script setup lang="ts">
import CommonProps from '../../common-props/Props.vue'
import { ElForm, ElFormItem, ElInput, ElSwitch } from 'element-plus'
import { useFlowStore } from '@/stores/flow'
const fs = useFlowStore()
</script>

<style lang="scss" scoped></style>
